<?php

/**
 * Description of Index
 *
 * @author adrian
 */
class Index_Model_Index {
   
    /**
     * index data handler
     * 
     * @var indexData
     */
    public $indexData;
    
    public function __construct() {
        $this->indexData = new Index_Data_Index;
    }
    
    public function getArticle(array $getVars){
        
        if(isset($getVars['page'])){
            $page = $getVars['page'];
        }
        else {
            $page = "index";
        }
        
        $article = $this->indexData->getData($page);
       
        return $article;
        
    }
}

?>
